package com.tangding.service.entity;

import java.io.Serializable;
import java.util.HashMap;

import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * @description 
 *
 * @author Ranger
 * @version 2016年8月13日_下午4:22:32
 *
 */
@JsonInclude(Include.NON_NULL)
public class BaseEntity implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@JsonIgnore
	private HashMap<String, Object> safe;
	
	@JsonAnySetter
	public void set(String name, Object value) {
		if (safe == null) {
			safe = new HashMap<String, Object>();
		}
		safe.put(name, value);
	}

	public HashMap<String, Object> getSafe() {
		return safe;
	}
	
	public Object getSafe(String name) {
		return safe.get(name);
	}
}
